//
//  ProvienceDTO.m
//  QuickCure37
//
//  Created by 马文星 on 16/6/19.
//  Copyright © 2016年 Demos. All rights reserved.
//

#import "ProvienceDTO.h"

@implementation ProvienceDTO


+ (instancetype)modelWithDic:(NSDictionary *)dic{

    ProvienceDTO *dto = [[ProvienceDTO alloc] init];
    
    [dto setValuesForKeysWithDictionary:dic];
    
    return dto;
}


+ (NSArray *)dtoWithArray:(NSArray *)arr{

    NSMutableArray *arrM = [NSMutableArray arrayWithCapacity:10];
    
    for (int i = 0; i < arr.count; ++i) {
        
      ProvienceDTO *dto =   [ProvienceDTO modelWithDic:arr[i]];
        
        [arrM addObject:dto];
    }
    
    return arrM.copy;
}

@end
